-- Sets up the script's main schemas table --
Hyperion.Schemas = { }

-- Loads a schema --
function Hyperion.Schemas.Load( schema )
	Hyperion.Schema = { }
	Hyperion.Schema.Configuration = { }

	if ( SERVER ) then
		AddCSLuaFile( "schemas/" .. schema .. "/" .. "sh_config.lua" )
		AddCSLuaFile( "schemas/" .. schema .. "/" .. "sh_info.lua" )

		include( "schemas/" .. schema .. "/" .. "sh_config.lua" )
		include( "schemas/" .. schema .. "/" .. "sh_info.lua" )
	elseif ( CLIENT ) then
		include( "schemas/" .. schema .. "/" .. "sh_config.lua" )
		include( "schemas/" .. schema .. "/" .. "sh_info.lua" )
	end

	table.insert( Hyperion.Schemas, Hyperion.Schema )

	MsgN( "[Hyperion] Loaded schema: '" .. Hyperion.Schema.Name .. "', made by: '" .. Hyperion.Schema.Author .. "'" )

	-- LOAD ITEMS

	-- LOAD FACTIONS

	Hyperion.Plugins.Load( schema )
end